package com.cy.service;

import com.cy.common.ResultResponse;
import com.cy.entity.Courses;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cy.entity.Users;
import io.swagger.v3.oas.annotations.parameters.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Aleven
 * @since 2024-12-21
 */
public interface ICoursesService extends IService<Courses> {

    //查询所有课程
    public List<Courses> FindAllCourses() ;

    //根据分类查询课程
    public List<Courses> FindCoursesByClass(Courses Category);

    //根据条件筛选搜索
    public List<Courses> FindByCondition(Courses courses);

    //增加课程
    ResultResponse insertCourses(@RequestBody Courses courses) throws Exception;

    //修改课程
    ResultResponse updateCourses(@RequestBody Courses courses) throws Exception;

    //删除课程
    public int delCourses(String courseID);



}
